package com.tulei.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tulei.system.Entity.SysLog;
import com.tulei.system.mapper.LogMapper;
import com.tulei.system.service.LogService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import static java.lang.Thread.sleep;

/**
 * @Author TuLei
 * @Date 2024-06-10 13:15
 **/

@Service
public class LogServiceImpl extends ServiceImpl<LogMapper, SysLog> implements LogService {

    @Override
    @Async("threadPoolStarter")
    public void saveOne(SysLog sysLog) {
        save(sysLog);
    }
}
